package ElectricProject;

public class HaierFactory implements ElectricFactory{
    @Override
    public AirConditioner createAirConditioner() {
        HaierAirConditioner haierAirConditioner = new HaierAirConditioner();
        System.out.println("生产了一台海尔空调");
        return haierAirConditioner;
    }

    @Override
    public Television createTelevision() {
        HaierTelevision haierTelevision = new HaierTelevision();
        System.out.println("生成了一台海尔电视机");
        return haierTelevision;
    }
}
